public class SavingAccount extends Account {
    private double interestRate;

    public double getInterestRate() {
        return interestRate;
    }

    public void setInterestRate(double interestRate) {
        this.interestRate = interestRate;
    }

    public SavingAccount(String name, int id, String kind, String password, double balance, String record) {
        super(name, id, kind, password, balance, record);
    }
    public double calculateInterest(){
        return getBalance()*interestRate;
    }
}
